/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package apus.persistence.jdbc;

import apus.persistence.*;

/**
 * Factory returns DAO object working with database for every entity.
 * @author  Maxim Vasilevsky
 * @author  Roman Dyatkovsky
 * @since APUS v0.5
 * @see DaoFactory
 */
public class JdbcDAOFactory implements DaoFactory{

    @Override
    public AccountDAO getAccountDAO() {
        return new JdbcAccountDAO();
    }

    @Override
    public CallDAO getCallDAO() {
        return new JdbcCallDAO();
    }

    @Override
    public OrganizationDAO getOrganizationDAO() {
        return new JdbcOrganizationDAO();
    }

    @Override
    public PeriodDAO getPeriodDAO() {
        return new JdbcPeriodDAO();
    }

    @Override
    public PersonDAO getPersonDAO() {
        return new JdbcPersonDAO();
    }

    @Override
    public PhoneNumberDAO getPhoneNumberDAO() {
        return new JdbcPhoneNumberDAO();
    }
    
    @Override
    public UserDAO getUserDAO(){
        return new JdbcUserDAO();
    }
    
}
